<include file="Common/header" />
<title>栏目管理</title>
<style>
.norag { border: none !important; font-weight: normal !important }
</style>
</head>
<body>
<nav class="breadcrumb">
  <div class="menu_4">
    <volist name="Group" id="vo">
     <a href="{:U('Config/index',array('id'=>$key))}"  <if  condition="$id eq $key" > class="active" </if> >{$vo}</a>
      </volist>
  </div>
  
  <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a></nav>
</nav>
<div class="pd-20">
  <div class="wrap J_check_wrap">
    <div class="h_a">站点配置</div>
    <div class="table_full">
      <form method="post" class=" " action="">
        <table cellpadding="0" cellspacing="0" width="100%" class="table table-hover table-bg">
          <tbody>
            <volist name="Config" id="vo">
              <if condition="$vo['type'] eq 0"><!--数字-->
                <tr>
                  <th width="140">{$vo.title}:</th>
                  <td><input type="text" class="input-text" name="{$vo['name']}" value="{$vo['value']}"  style="width:100px;">
                    <span class="gray" style="color:#9F9F9F"> &nbsp; ({$vo['remark']})</span></td>
                </tr>
                <elseif condition="$vo['type'] eq 1" />
                <!--字符-->
                <tr>
                  <th width="140">{$vo.title}:</th>
                  <td><input type="text" class="input-text" name="{$vo['name']}" value="{$vo['value']}"  >
                    <span class="gray" style="color:#9F9F9F"> &nbsp; ({$vo['remark']})</span></td>
                </tr>
                <elseif condition="$vo['type'] eq 2" />
                <!--文本-->
                <tr>
                  <th width="140">{$vo.title}:</th>
                  <td><textarea name="{$vo['name']}" class="textarea" style="width:380px; height:150px;">{$vo['value']}</textarea>
                  <span class="gray" style="color:#9F9F9F"> &nbsp; ({$vo['remark']})</span>
                    </td>
                </tr>
                <elseif condition="$vo['type'] eq 3" />
                <!--单选-->
                <tr>
                  <th width="140">{$vo.title}:</th>
                  <td>
                  <php>$radios=analysis($vo['value']);</php>
                  <volist name="radios" id="radio">
                   <input type="radio" id="radio-{$key}" name="{$vo['name']}" <if condition="$key eq $vo['extra']">checked</if> value="{$key}"><label for="radio-{$key}">{$radio}</label> 
                   &nbsp;
                  </volist>
                    <span class="gray" style="color:#9F9F9F"> &nbsp; ({$vo['remark']})</span></td>
                </tr>
                <elseif condition="$vo['type'] eq 4" />
                <!--多选-->
                <tr>
                  <th width="140">{$vo.title}:</th>
                  <td>
                    <php>$checkboxs=analysis($vo['value']);$checkboxsx=explode(':',$vo['extra']);</php>
                  <volist name="checkboxs" id="checkbox">
                  <input type="checkbox" id="checkbox-{$key}" name="{$vo['name']}[]" <if condition="in_array($key,$checkboxsx)">checked</if> value="{$key}"><label for="checkbox-{$key}">{$checkbox}</label>
                   &nbsp;
                  </volist> 
                    <span class="gray" style="color:#9F9F9F"> &nbsp; ({$vo['remark']})</span></td>
                </tr>
                <elseif condition="$vo['type'] eq 5" />
                <!--下拉框-->
                <tr>
                  <th width="140">{$vo.title}:</th>
                  <td><select name="{$vo['name']}"  class="select-box">
                  <php>$selects=analysis($vo['value'])</php> 
                  <volist name="selects" id="select">
                    <option value="{$key}" <if condition="$key eq $vo['extra']">selected</if> >{$select}</option>
                   &nbsp;
                  </volist>           
                      
                    </select>
                    <span class="gray" style="color:#9F9F9F"> &nbsp; ({$vo['remark']})</span></td>
                </tr>
               <elseif condition="$vo['type'] eq 6" />
                <!--数组-->
                <tr>
                 <th width="140">{$vo.title}:</th>
                <td><textarea name="{$vo['name']}" class="textarea" style="width:380px; height:150px;">{$vo['value']}</textarea>
                    <span class="gray" style="color:#9F9F9F"> &nbsp; ({$vo['remark']})</span></td>
                </tr>
                
              
                
                 <elseif condition="$vo['type'] eq 7" />
                <!--数组-->
                <tr>
                 <th width="140">{$vo.title}:</th>
              
              <td>
                <input class="input-text radius f-l length_6 filePicker_{$vo['name']}" type="text" name="{$vo['name']}" id="image" value="{$vo['value']}" size="50">
                     <div class="btn btn-success radius" onclick="swfupload(this,'.filePicker_{$vo['name']}','');" style="margin-left:1.5em">选择图片</div>
                 
                 
                   <span class="gray" style="color:#9F9F9F"> &nbsp; ({$vo['remark']})</span></td>
              
                </tr>
                
                <else />
                
                <tr>
                  <th width="140">无配置</th>
                  <td></td>
                </tr>
              </if>
            </volist>
          
          </tbody>
        </table>
  
        
                            <div style=" margin-top:20px;">
         <button type="submit" class="btn btn-success radius">提交信息</button>
        
          </div>  
      </form>
    </div>
  </div>
</div>
  
<script type="text/javascript">
$(function(){
   
 
$(".h_a").html($(".menu_4 a[class='active']").html()) ;
 
 
})
</script>
<script type="text/javascript">

 $(function(){
	 $(".J_tabs_nav li").click(function(){
		$(".J_tabs_nav li").removeClass('current');
		$(this).addClass('current');
		 $(".J_tabs_contents .tabpanel").hide();
		$(".J_tabs_contents .tabpanel:eq("+$(this).index()+")").show(); 
		 });
	 
	 
	 });

 
function swfupload(onthis,idclass,filetype,ty){
	  id_class=idclass;
	  upurl="/{:C('Swfupload.uploadDir')}/";
	  ty_=ty; 
	  
		if(!filetype){filetype='Images';}
			 hidoger.setconfig={ 
	 			type:filetype, 
				auto:true  ,
				 
	 		 };  	
			
			 layer.open({ 
			  type: 2,
			  title: '附件上传',
			  shadeClose: true,      
			  shade: 0.2,
			  area: ['70%', '550px'],
			  content: '{:U("Swfupload/index")}?type='+filetype, 
			  scrollbar: false 
			}); 
			
				
			  
	} 

 $(function(){
	 $("#parentid").children('option').each(function(){ 
		 if($(this).val()=='{$pid}'){
		 	 $(this).attr("selected",true);
			 return true;
			 
			 }
		 
		 });
	 
	 
	 });

</script> 

<include file="Common/foot" />
</body>
</html>